<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false"  pageEncoding="UTF-8" %>
<html>
<body>
<h2>Hello World!</h2>
    <div>
        <span>文件上传</span>
        <fieldset>
<%--            <form enctype="multipart/form-data" method="post" action="/demo/upload">--%>
<%--                <input type="file" name="uploadFile">--%>
<%--                <input type="submit" value="上传">--%>
<%--            </form>--%>
            <form action="/demo/upload" method="post" enctype="multipart/form-data">
                选择一个文件:
                <input type="file" name="uploadFile"/>
                <br/><br/>
                <input type="submit" value="上传"/>
            </form>
        </fieldset>

    </div>

<div>
    <span>use</span>
    <fieldset>
        <form action="/demo/users" method="post" enctype="application/x-www-form-urlencoded">
            选择一个文件:
            <input type="text" name="accounts[0].name"/>
            <br/><br/>
            <input type="submit" value="提交"/>
        </form>
    </fieldset>

</div>


</body>
</html>
